package com.wuster.exception;

/**
 * 业务异常
 */
public class BaseException extends RuntimeException {

    private int statusCode; // 状态码

    public BaseException() {
    }

    public BaseException(int code, String msg) {
        super(msg);
        this.statusCode = code;
    }

    // 获取状态吗
    public int getCode() {
        return statusCode;
    }

}
